home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / tracer / tracer.h < prev    next >
C/C++ Source or Header  |  1997-07-22  |  2KB  |  101 lines

  1.  
  2. /* $Id: tracer.h,v 4.3 1997/06/25 21:45:27 pvmsrc Exp $ */
  3.  
  4. /*
  5.  *         Tracer version 1.0:  A Trace File Generator for PVM
  6.  *           Oak Ridge National Laboratory, Oak Ridge TN.
  7.  *           Authors:  James Arthur Kohl and G. A. Geist
  8.  *                   (C) 1994 All Rights Reserved
  9.  *
  10.  *                              NOTICE
  11.  *
  12.  * Permission to use, copy, modify, and distribute this software and
  13.  * its documentation for any purpose and without fee is hereby granted
  14.  * provided that the above copyright notice appear in all copies and
  15.  * that both the copyright notice and this permission notice appear
  16.  * in supporting documentation.
  17.  *
  18.  * Neither the Institution, Oak Ridge National Laboratory, nor the
  19.  * Authors make any representations about the suitability of this
  20.  * software for any purpose.  This software is provided ``as is''
  21.  * without express or implied warranty.
  22.  *
  23.  * Tracer was funded by the U.S. Department of Energy.
  24.  */
  25.  
  26.  
  27. /* System Header Files */
  28.  
  29. #include <stdio.h>
  30. #include <sys/types.h>
  31. #ifndef WIN32
  32. #include <sys/time.h>
  33. #include <pwd.h>
  34. #else
  35. #include "pvmwin.h"
  36. #include <time.h>
  37. #endif
  38. #include <malloc.h>
  39. #include <signal.h>
  40. #include <ctype.h>
  41.  
  42.  
  43. /* Header Files */
  44.  
  45. #include <pvm3.h>
  46.  
  47. #ifdef USE_PVM_33
  48. #include "../src/tdpro.h"
  49. #else
  50. #include <pvmproto.h>
  51. #endif
  52.  
  53. #include <pvmtev.h>
  54.  
  55. #include "trcdef.h"
  56.  
  57. typedef void (*vfp)();
  58. typedef int (*ifp)();
  59.  
  60.  
  61. /* Defined Constants & Macros */
  62.  
  63.  
  64. /* This Tracer's Version */
  65.  
  66. #define MYVERSION "1.0.0"
  67.  
  68.  
  69. /* Select Macro (based on FDSETISINT) */
  70.  
  71. #ifdef FDSETISINT
  72.  
  73. #define SELECT( _nfds, _rfdsp, _wfdsp, _efdsp, _tvalp ) \
  74.     select( (_nfds), \
  75.         (int *) (_rfdsp), (int *) (_wfdsp), (int *) (_efdsp), \
  76.         (struct timeval *) (_tvalp) )
  77.  
  78. #else
  79.  
  80. #define SELECT( _nfds, _rfdsp, _wfdsp, _efdsp, _tvalp ) \
  81.     select( (_nfds), \
  82.         (fd_set *) (_rfdsp), (fd_set *) (_wfdsp), (fd_set *) (_efdsp), \
  83.         (struct timeval *) (_tvalp) )
  84.  
  85. #endif
  86.  
  87.  
  88. /* Routines */
  89.  
  90. FILE    *fopen();
  91.  
  92. void    re_register_tracer();
  93.  
  94.  
  95. /* Externals */
  96.  
  97. extern    struct Pvmtevinfo    pvmtevinfo[];
  98.  
  99. extern    int     errno;
  100.  
  101.